package Beverage;

public class Client12 {
    public static void main(String[] args) {
        String decription;
        double cost;
        Beverage beverage_e;

        beverage_e = new Espresso();
        decription = beverage_e.getDecription();
        cost = beverage_e.getCost();
        System.out.println("饮料：" + decription);
        System.out.println("价格：" + cost);
        System.out.println("---------------------");

        Beverage beverage_mi;
        beverage_mi = new Milk(beverage_e);
        decription = beverage_mi.getDecription();
        cost = beverage_mi.getCost();
        System.out.println("饮料：" + decription);
        System.out.println("价格：" + cost);
        System.out.println("---------------------");
        Beverage beverage_mo;
        beverage_mo = new Mocha(beverage_mi);
        decription = beverage_mo.getDecription();
        cost = beverage_mo.getCost();
        System.out.println("饮料：" + decription);
        System.out.println("价格：" + cost);
        System.out.println("---------------------");
    }
}

